package com.flowabledemo.listen;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.JavaDelegate;

/**
 * @author :Administrator
 * @description: TODO edit class Description
 * @create date: 2022/3/1 15:46
 */
@Slf4j
public class ApproveNo implements JavaDelegate {
    @Override
    public void execute(DelegateExecution delegateExecution) {
        //可以发送消息给某人
        log.info("不通过，userId是：{}",delegateExecution.getVariable("userId"));
    }
}
